<?php 
if(count($ajax_bestdeal)>0){
foreach($ajax_bestdeal as $listbestdeal){ ?>

<div class="fl w269 pdl20"> <img width="100%" height="115" src="<?php echo base_url(); ?>public/images/banner2_03.jpg">
  <h3 class="ff_museo700 mgt0 mgb0 blue f18 ov_fl_hidden h22"><?php echo $listbestdeal["title"] ?></h3>
  <div class="fl pdt1">
    <?php 	  	
				for($i=1;$i<=intval($listbestdeal["numberstar"]);$i++){ ?>
    <img src="<?php echo base_url(); ?>public/images/star_01.png" width="12" height="11"/>
    <?php }
				if(intval($listbestdeal["numberstar"])<5){
					for($i=1;$i<=5-intval($listbestdeal["numberstar"]);$i++){?>
    <img src="<?php echo base_url(); ?>public/images/hidden-star-05.png" width="12" height="11"/>
    <?php }
				}
		  ?>
  </div>
  &nbsp;<?php echo count($listbestdeal["bestdealreview"]); ?> reviews
  <p class="f11 mgt6 mgb10 h42 ov_fl_hidden"><?php echo $listbestdeal["description"]; ?></p>
  <div class="item bgr_gray pdt6 pdb6"> <span class="fl blue pdt4 pdl5">Price from</span> <strong class="fl pdl20 orange ff_museo700 f18">US $<?php echo $listbestdeal["price"] ?></strong> <a href="#" class="fr ff_museo500 white bgr_143167 pdt5 pdl6 pdr6 pdb3 mgr5">DETAILS</a> </div>
</div>
<?php }}?>
